/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package model.interfaces;

import java.util.List;
import javax.persistence.NoResultException;
import javax.persistence.PersistenceException;
import model.cliente.Cliente;
import model.excecoes.ErroDAOException;
import model.excecoes.ErroNegocioException;

/**
 *
 * @author Marcos
 */
public interface INegocioCliente {

    public void cadastrarCliente(Cliente cliente) throws ErroDAOException, ErroNegocioException, PersistenceException, NoResultException;

    public void alterarCliente(Cliente cliente) throws ErroDAOException, ErroNegocioException, PersistenceException, NoResultException;

    public void excluirCliente(Cliente cliente) throws ErroDAOException, ErroNegocioException, PersistenceException, NoResultException;

    public List<Cliente> listarCliente(String consulta, String campo)throws ErroDAOException, ErroNegocioException, PersistenceException, NoResultException;
    
    public boolean logarCliente(String login, String senha)throws ErroDAOException, ErroNegocioException, PersistenceException, NoResultException;
}
